package com.nidu.demo.tenant.convertor;

import com.nidu.demo.base.BaseConvertor;
import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.tenant.dto.TenantCO;
import com.nidu.demo.tenant.mapper.dataobject.TenantDO;
import com.nidu.demo.tenant.model.Tenant;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = MapStructConfig.class)
public interface TenantConvertor extends BaseConvertor<TenantDO, Tenant, TenantCO> {
    
    @Override
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "createBy", ignore = true)
    @Mapping(target = "updateBy", ignore = true)
    TenantDO toDataObject(Tenant tenant);
} 